<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	<a4j:outputPanel id="grupoEventoChangePanelId">
		<rich:panel styleClass="rich-stglpanel-body">
			<f:facet name="header">#{messages['label.grupos.evento']}</f:facet>
			<s:decorate template="/layout/edit.xhtml">
				<ui:define name="label">#{messages['label.descricao']}</ui:define>
				<h:inputText 
					value="#{grupoEventoAction.entity.descricao}"
					label="#{messages['label.descricao']}" 
					required="true" 
					size="50"
					onkeyup="toUpperCase(this,'')">
				</h:inputText>
			</s:decorate>
		</rich:panel>
		<s:decorate template="/layout/button.xhtml">
			<ui:param name="action" value="#{grupoEventoAction}" />

			<ui:param name="renderedSave"
				value="#{grupoEventoAction.entity.id==null}" />
			<ui:param name="limitToListOnSave" value="true" />
			<ui:param name="reRenderOnSave"
				value="grupoEventoChangePanelId,grupoEventoOutputId,grupoEventoMensagemPanelId" />

			<ui:param name="renderedUpdate"
				value="#{grupoEventoAction.entity.id!=null}" />
			<ui:param name="limitToListOnUpdate" value="true" />
			<ui:param name="reRenderOnUpdate"
				value="grupoEventoChangePanelId,grupoEventoOutputId,grupoEventoMensagemPanelId" />
				
			<ui:param name="renderedRemove"
				value="#{grupoEventoAction.entity.id!=null}" />
			<ui:param name="limitToListOnRemove" value="true" />
			<ui:param name="reRenderOnRemove"
				value="grupoEventoChangePanelId,grupoEventoOutputId,grupoEventoMensagemPanelId" />
				
		</s:decorate>
	</a4j:outputPanel>
</ui:fragment>
